package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BywPositionTypeMapper;
import com.ruoyi.system.domain.BywPositionType;
import com.ruoyi.system.service.IBywPositionTypeService;

/**
 * 职位字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
@Service
public class BywPositionTypeServiceImpl implements IBywPositionTypeService
{
    @Autowired
    private BywPositionTypeMapper bywPositionTypeMapper;

    /**
     * 查询职位字典
     * 
     * @param id 职位字典主键
     * @return 职位字典
     */
    @Override
    public BywPositionType selectBywPositionById(Long id)
    {
        return bywPositionTypeMapper.selectBywPositionById(id);
    }

    /**
     * 查询职位字典列表
     * 
     * @param bywPositionType 职位字典
     * @return 职位字典
     */
    @Override
    public List<BywPositionType> selectBywPositionList(BywPositionType bywPositionType)
    {
        return bywPositionTypeMapper.selectBywPositionList(bywPositionType);
    }

    /**
     * 新增职位字典
     * 
     * @param bywPositionType 职位字典
     * @return 结果
     */
    @Override
    public int insertBywPosition(BywPositionType bywPositionType)
    {
        return bywPositionTypeMapper.insertBywPosition(bywPositionType);
    }

    /**
     * 修改职位字典
     * 
     * @param bywPositionType 职位字典
     * @return 结果
     */
    @Override
    public int updateBywPosition(BywPositionType bywPositionType)
    {
        return bywPositionTypeMapper.updateBywPosition(bywPositionType);
    }

    /**
     * 批量删除职位字典
     * 
     * @param ids 需要删除的职位字典主键
     * @return 结果
     */
    @Override
    public int deleteBywPositionByIds(Long[] ids)
    {
        return bywPositionTypeMapper.deleteBywPositionByIds(ids);
    }

    /**
     * 删除职位字典信息
     * 
     * @param id 职位字典主键
     * @return 结果
     */
    @Override
    public int deleteBywPositionById(Long id)
    {
        return bywPositionTypeMapper.deleteBywPositionById(id);
    }
}
